package com.cuiweiyou.happypaint.util;

import android.content.Context;
import android.widget.Toast;

/**
 */

public class ToastUtil {

    private static Toast toastShort;
    private static Toast toastLong;

    public static void init(Context context) {
        toastShort = Toast.makeText(context, "", Toast.LENGTH_SHORT);
        toastLong = Toast.makeText(context, "", Toast.LENGTH_LONG);
    }

    public static void toastShort(String str) {
        toastShort.setText(str);
        toastShort.show();
    }

    public static void toastLong(String str) {
        toastLong.setText(str);
        toastLong.show();
    }
}
